/**
 * @author zhangshuai
 * @version V1.0
 * @Project Java2_26
 * @Package PACKAGE_NAME
 * @Description:
 * @Date 2025/5/14 17:12
 */
//登录实现类要去实现登录接口
public class LoginImpl implements Login{
    @Override
    public void login(String password) {
        if("123456".equals(password)){
            System.out.println("登录成功");
        }else {
            System.out.println("登录失败");
        }
    }

    @Override
    public void register() {

    }

    public static void main(String[] args) {
        LoginImpl login = new LoginImpl();
        login.login("123455");
        login.eat();
    }
}